package com.meida.deren.admin;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.meida.base.provider.config.AdminAuthenticationProvider;
import com.meida.common.security.MyUserAuthenticationConverter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 平台基础服务
 * 提供系统用户、权限分配、资源、客户端管理
 *
 * @author zyf
 */
@EnableCaching
@EnableFeignClients(basePackages = {"com.meida"})
@EnableDiscoveryClient
@MapperScan(basePackages = "com.meida.**.mapper")
@EnableKnife4j
@SpringBootApplication(scanBasePackages = "com.meida")
public class AdminApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(AdminApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
